clear all
set more off
set matsize 10000
set maxvar 10000
adopath + ../code/gslab_tools/

/*****************
Master Script for Replication of:
Funding of Clinical Trials and Reported Drug Efficacy
Tamar Oostrom
February 4, 2024
*******/

** Import clinical trials data
do 1_antidepressants.do
do 2_antipsychotics.do
do 3_combined.do

** Import MEPS data
** Comment out steps 4-6 if you wish to run the code 
** using the derived MEPS files instead of creating them from scratch
do 4_meps_input.do
do 5_meps_combine_years.do
do 6_meps_post_approval.do

** Import NCT Registry
do 7_registry_build.do

** Setup data for analysis
** Note prediction bootstrap takes 1-2 hours to run
do 8_diff_in_diff_setup.do
do 9_prediction_bootstrap.do

** Create tables and figures
do 10_figures.do
do 11_tables.do

